import { HashRouter, Routes, Route } from "react-router-dom";
import { lazy, Suspense } from 'react'
const Index = lazy(() => import('../pages/index'));
const Login = lazy(() => import('../login/login'));
const Classification = lazy(() => import('../classification/index'));
const BasicRoute = () => (
    <HashRouter>
        <Suspense fallback={''}>
            <Routes>
                <Route path='/' element={<Index />}></Route>
                <Route path='/login' element={<Login/>}></Route>
                <Route path='/classification/:id' element={<Classification/>}></Route>
            </Routes>
        </Suspense>
    </HashRouter>
);
export default BasicRoute;
